
var response_data={
  'access_token':new Date().getTime(),
  'refresh_token':new Date().getTime(),
  'expires_in':new Date().getTime(),
}
export default [{
  url: "/auth/auth/oauth/token",
  method: "post",
  response: () => {
    return {
      data: response_data
    }
  }
}, {
  url: "/user/logout",
  method: "get",
  response: () => {
    return {
      data: new Date().getTime() + ''
    }
  }
}, {
  url: "/user/logout",
  method: "post",
  response: () => {
    return {
      data: new Date().getTime() + ''
    }
  }
}, {
  url: "/user/refresh",
  method: "post",
  response: () => {
    return {
      data: new Date().getTime() + ''
    }
  }
}, {
  url: "/user/getUserInfo",
  method: "get",
  response: () => {
    return {
      data: {
        userInfo: {
          username: 'admin',
          nickName: '环兴快速开发框架',
          phone: '17615133333',
          dept:'开发部门',
          avatar:'https://jycloud-skl.oss-cn-beijing.aliyuncs.com/1/material/7bbaa490-014b-4c6f-8650-ac5c3a4213eb.png',
        },
        roles: ['admin','system'],
        permissions: [
          'sys:crud:add',
          'sys:crud:export',
          'sys:menu:add',
          'sys:menu:edit',
          'sys:menu:del',
          'sys:role:btn1',
          'sys:role:btn2',
          'sys:role:btn3',
          'sys:role:btn4',
          'sys:role:btn5',
          'sys:role:btn6',
        ]
      }
    }
  }
}]